<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head>
        <title>BrasilFA - O seu site de Futebol Americano</title>
    </h:head>
    <h:body>
        <h:form>
            <table border="1" cellpadding="5" cellspacing="1" width="80%" align="center">
                <h:inputHidden value="#{campeonatoTimesBean.codigoCamp}" />
                <tr>
                    <td align="right">
                        <h:selectManyListbox value="#{campeonatoTimesBean.times_selecionados}" 
                                             converter="converterTime"
                                             style="height: 100px; width: 100px;">
                
                            <f:selectItems value="#{campeonatoTimesBean.times_disponiveis()}" 
                               var="t" itemLabel="#{t.name}" 
                               itemValue="#{t}"/>
                
                        </h:selectManyListbox>
                    </td>
                    <td align="left">
                        <h:commandButton action="#{campeonatoTimesBean.salvar()}" value="Salvar" />
                        <h:button outcome="campeonatos_listar" value="Voltar" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="left">
                        <h:messages style=""/>
                    </td>
                </tr>
            </table>
        </h:form>
    </h:body>
</html>

